package org.dromara.demo.designPattern.观察者模式.event;

import org.dromara.demo.designPattern.观察者模式.entity.LotteryResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MQEventListener implements EventListener{

    private Logger logger = LoggerFactory.getLogger(MQEventListener.class);
    @Override
    public void doEvent(LotteryResult result) {
        logger.info("记录用户 {} 摇号结果(MQ)：{}", result.getUid(), result.getMsg());
    }
}
